import { combineReducers } from "@reduxjs/toolkit";
import { persistReducer } from "redux-persist";
import persistConfig from "./persistConfig";
import userReducer from "./modules/userStore";
import wsReducer from "./modules/wsStore";
import cartStore from "./modules/cratStore";

const rootReducer = combineReducers({
  user: userReducer,
  ws: wsReducer,
  cart: cartStore,
});

export default persistReducer(persistConfig, rootReducer);
